function stream = getRandStream(seed)
  stream = RandStream('mt19937ar', 'Seed', seed);
end
